Problem Note 46430: PROC APPEND might generate an "Out of memory" error message
PROC APPEND might generate an "Out of memory" error message. This is most likely to occur when PROC APPEND is used to append data to a BASE= data set that is empty and has multiple indexes defined in it. Subsequent updating of the indexes might fail due to a lack of memory and can result in a damaged BASE= data set.
There are two possible workarounds for this issue.
-
Avoid the error message by adding the following OPTIONS statement just before the PROC APPEND step:
options $debug='yoebat=1';
-
Create the data set and then create the indexes.
a. Use PROC DATASETS to create the indexes following the creation of the data set:
data test;
do i = 1 to 100;
x=i;
output;
end;
run;
proc datasets;
modify test;
index create x;
index create i;
run;
quit;
b. Create the indexes while also creating the data set:
data test(index=(x i));
do i = 1 to 100;
x=i;
output;
end;
run;
Operating System and Release Information
SAS System | Base SAS | z/OS | 9.1 TS1M0 | 9.4 TS1M0 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M0 | 9.4 TS1M0 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Server | 9.1 TS1M0 | |
Microsoft Windows 2000 Professional | 9.1 TS1M0 | |
Microsoft Windows NT Workstation | 9.1 TS1M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M0 | 9.4 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M0 | 9.4 TS1M0 |
Microsoft Windows XP Professional | 9.1 TS1M0 | 9.4 TS1M0 |
64-bit Enabled AIX | 9.1 TS1M0 | 9.4 TS1M0 |
64-bit Enabled HP-UX | 9.1 TS1M0 | 9.4 TS1M0 |
64-bit Enabled Solaris | 9.1 TS1M0 | 9.4 TS1M0 |
HP-UX IPF | 9.1 TS1M0 | 9.4 TS1M0 |
Linux | 9.1 TS1M0 | 9.4 TS1M0 |
OpenVMS Alpha | 9.1 TS1M0 | 9.4 TS1M0 |
Tru64 UNIX | 9.1 TS1M0 | 9.4 TS1M0 |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
PROC APPEND might generate an "Out of memory" error message when PROC APPEND is used to append data to a BASE= data set that is empty and has multiple indexes defined in it.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2012-05-03 15:27:40 |
Date Created: | 2012-04-26 13:36:24 |